﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200118F RID: 4495
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetSignatureCsReq : IMessage<SetSignatureCsReq>, IMessage, IEquatable<SetSignatureCsReq>, IDeepCloneable<SetSignatureCsReq>, IBufferMessage
	{
		// Token: 0x170038E0 RID: 14560
		// (get) Token: 0x0600C931 RID: 51505 RVA: 0x0021E578 File Offset: 0x0021C778
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetSignatureCsReq> Parser
		{
			get
			{
				return SetSignatureCsReq._parser;
			}
		}

		// Token: 0x170038E1 RID: 14561
		// (get) Token: 0x0600C932 RID: 51506 RVA: 0x0021E57F File Offset: 0x0021C77F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetSignatureCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170038E2 RID: 14562
		// (get) Token: 0x0600C933 RID: 51507 RVA: 0x0021E591 File Offset: 0x0021C791
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetSignatureCsReq.Descriptor;
			}
		}

		// Token: 0x0600C934 RID: 51508 RVA: 0x0021E598 File Offset: 0x0021C798
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetSignatureCsReq()
		{
		}

		// Token: 0x0600C935 RID: 51509 RVA: 0x0021E5AB File Offset: 0x0021C7AB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetSignatureCsReq(SetSignatureCsReq other) : this()
		{
			this.signature_ = other.signature_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C936 RID: 51510 RVA: 0x0021E5D0 File Offset: 0x0021C7D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetSignatureCsReq Clone()
		{
			return new SetSignatureCsReq(this);
		}

		// Token: 0x170038E3 RID: 14563
		// (get) Token: 0x0600C937 RID: 51511 RVA: 0x0021E5D8 File Offset: 0x0021C7D8
		// (set) Token: 0x0600C938 RID: 51512 RVA: 0x0021E5E0 File Offset: 0x0021C7E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string Signature
		{
			get
			{
				return this.signature_;
			}
			set
			{
				this.signature_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x0600C939 RID: 51513 RVA: 0x0021E5F3 File Offset: 0x0021C7F3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetSignatureCsReq);
		}

		// Token: 0x0600C93A RID: 51514 RVA: 0x0021E601 File Offset: 0x0021C801
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetSignatureCsReq other)
		{
			return other != null && (other == this || (!(this.Signature != other.Signature) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C93B RID: 51515 RVA: 0x0021E634 File Offset: 0x0021C834
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Signature.Length != 0)
			{
				num ^= this.Signature.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C93C RID: 51516 RVA: 0x0021E675 File Offset: 0x0021C875
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C93D RID: 51517 RVA: 0x0021E67D File Offset: 0x0021C87D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C93E RID: 51518 RVA: 0x0021E686 File Offset: 0x0021C886
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Signature.Length != 0)
			{
				output.WriteRawTag(66);
				output.WriteString(this.Signature);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C93F RID: 51519 RVA: 0x0021E6C0 File Offset: 0x0021C8C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Signature.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.Signature);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C940 RID: 51520 RVA: 0x0021E703 File Offset: 0x0021C903
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetSignatureCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Signature.Length != 0)
			{
				this.Signature = other.Signature;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C941 RID: 51521 RVA: 0x0021E739 File Offset: 0x0021C939
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C942 RID: 51522 RVA: 0x0021E744 File Offset: 0x0021C944
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 66U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Signature = input.ReadString();
				}
			}
		}

		// Token: 0x040050CE RID: 20686
		private static readonly MessageParser<SetSignatureCsReq> _parser = new MessageParser<SetSignatureCsReq>(() => new SetSignatureCsReq());

		// Token: 0x040050CF RID: 20687
		private UnknownFieldSet _unknownFields;

		// Token: 0x040050D0 RID: 20688
		public const int SignatureFieldNumber = 8;

		// Token: 0x040050D1 RID: 20689
		private string signature_ = "";
	}
}
